import {createStore} from 'redux';

const counterReducer = (state = 0,action) => {
  switch (action.type){
    case "add":
      return state + 1;
    case 'minus':
      return state - 1;
    default:
      return state  
  }
}

const store = createStore(counterReducer);

export default store;